<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的基金分类列表</title>
    <script src="/static/echarts.js"></script>
</head>
<body>

{% include "header.html" %}

<div id="A3">
<table>
    <tr>
        <td>
            <table border="0" cellspacing="5" cellpadding="0" valign="top">

                <tr>
                    <td>
                        <table class="table15_6">
                            <tr>
                                <td><b>名称</b></td>
                                <td><b>价值</b></td>
                                <td><b>累计收益</b></td>
                                <td><b>收益</b></td>
                                <td><b>收益率</b></td>
                                <td><b>月收益1</b></td>
                                <td><b>月收益2</b></td>
                                <td><b>月收益3</b></td>
                                <td><b>月收益4</b></td>
                                <td><b>月收益5</b></td>
                                <td><b>月收益6</b></td>
                                <td><b>1年收益预测</b></td>
                            </tr>
                            {% for category in categorys %}
                            <tr>
                                <td><a href="/fundlistByCategory/{{category.name}}/">{{category.name}}</a</td>
                                <td>{{category.value|floatformat}}</td>
                                <td>{{category.incomeTotal|floatformat}}</td>
                                <td>{{category.income|floatformat}}</td>
                                <td>{{category.incomeRate}}%</td>
                                <td>{{category.last6MonthIncome.0|floatformat:0}}</td>
                                <td>{{category.last6MonthIncome.1|floatformat:0}}</td>
                                <td>{{category.last6MonthIncome.2|floatformat:0}}</td>
                                <td>{{category.last6MonthIncome.3|floatformat:0}}</td>
                                <td>{{category.last6MonthIncome.4|floatformat:0}}</td>
                                <td>{{category.last6MonthIncome.5|floatformat:0}}</td>
                                <td>{{category.incomePre1Y|floatformat}}</td>
                            </tr>
                            {% endfor %}
                        </table>
                    </td>
                </tr>
            <tr><td><b>{{categoryFilter}}分类详情:</b></td></tr>
            <tr>
                <td>
                    {% if categoryFilter %}
                    <table class="table15_6">
                        <tr>
                            <td><b>编码</b></td>
                            <td><b>名称</b></td>
                            <td><b>类型</b></td>
                            <td><b>风险</b></td>
                            <td><b><a href="/fundlistByCategory/{{categoryFilter}}/totalIncome/">累计收益</a></b></td>
                            <td><b><a href="/fundlistByCategory/{{categoryFilter}}/curIncome/">持有收益</a></b></td>
                            <td><b><a href="/fundlistByCategory/{{categoryFilter}}/curIncomeRate/">收益率</a></b></td>
                            <td><b><a href="/fundlistByCategory/{{categoryFilter}}/curValue/">价值</a></b></td>
                            <td><b>份额</b></td>
                            <td><b><a href="/fundlistByCategory/{{categoryFilter}}/maxDrawDown1Y/">回撤1</a></b></td>
                            <td><b><a href="/fundlistByCategory/{{categoryFilter}}/maxDrawDown3Y/">回撤3</a></b></td>
                            <td><b><a href="/fundlistByCategory/{{categoryFilter}}/maxDrawDown5Y/">回撤5</a></b></td>
                            <td><b><a href="/fundlistByCategory/{{categoryFilter}}/maxDrawDownRate/">回撤比</a></b></td>
                            <td><b>1月</b></td>
                            <td><b>3月</b></td>
                            <td><b><a href="/fundlistByCategory/{{categoryFilter}}/6MRate/">6月</a></b></td>
                            <td><b><a href="/fundlistByCategory/{{categoryFilter}}/1YRate/">1年</a></b></td>
                            <td><b><a href="/fundlistByCategory/{{categoryFilter}}/2YRate/">2年</a></b></td>
                            <td><b>3<a href="/fundlistByCategory/{{categoryFilter}}/3YRate/">年</a></b></td>
                            <td><b><a href="/fundlistByCategory/{{categoryFilter}}/5YRate/">5年</a></b></td>
                            <td><b>操作</b></td>
                        </tr>
                        {% for fund in funds %}

                        {% if fund.tradingData.priceMonitor == 1 %}
                        <tr style="color:red">
                        {% else %}
                        {% if fund.tradingData.priceMonitor == 2 %}
                        <tr style="color:gold">
                        {% else %}
                        <tr>
                        {% endif %}
                        {% endif %}
                            <td>{{fund.fundName.code}}</td>
                            <td>{{fund.fundName.name}}</td>
                            <td>{{fund.fundName.type}}</td>
                            <td>{{fund.fundName.risk}}</td>
                            <td>{{fund.fundInfo.totalIncome|floatformat:0}}</td>
                            <td>{{fund.fundInfo.curIncome|floatformat:0}}</td>
                            <td>{{fund.fundInfo.curIncomeRate}}%</td>
                            <td>{{fund.fundInfo.curValue|floatformat:0}}</td>
                            <td>{{fund.fundInfo.curUnits}}</td>
                            <td>{{fund.fundInfo.maxDrawDown1Y}}%</td>
                            <td>{{fund.fundInfo.maxDrawDown3Y}}%</td>
                            <td>{{fund.fundInfo.maxDrawDown5Y}}%</td>
                            <td>{{ fund.fundInfo.icomeDrawDownRate1Y }}</td>
                            <td>{{ fund.fundInfo.incomeRate1M }}</td>
                            <td>{{ fund.fundInfo.incomeRate3M }}</td>
                            <td>{{ fund.fundInfo.incomeRate6M }}</td>
                            <td>{{ fund.fundInfo.incomeRate1Y }}</td>
                            <td>{{ fund.fundInfo.incomeRate2Y }}</td>
                            <td>{{ fund.fundInfo.incomeRate3Y }}</td>
                            <td>{{ fund.fundInfo.incomeRate5Y }}</td>
                            
                            <td><a href="/fundinfo/{{fund.fundName.code}}/">查看</a></td>
                        </tr>
                        {% endfor %}
                    </table>
                    {% endif %}
                </td>
            </tr>
            </table>
        </td>
    </tr>
</table>
</div>

<style type="text/css">
    .table15_6 table {
        width:100%;
        margin:15px 0;
        border:0;
    }
    .table15_6 th {
        font-weight:bold;
        background-color:#d3dae6;
        color:#202053
    }
    .table15_6,.table15_6 th,.table15_6 td {
        font-size:0.95em;
        text-align:center;
        padding:4px;
        border-collapse:collapse;
    }
    .table15_6 th {
        border: 1px solid #d3dae6;
        border-width:1px
    }
    .table15_6 td {
        border: 1px solid #d3dae6;
        border-width:1px
    }
    .table15_6 tr {
        border: 1px solid #ffffff;
    }
    .table15_6 tr:nth-child(odd){
        background-color:#f7f7f7;
    }
    .table15_6 tr:nth-child(even){
        background-color:#ffffff;
    }
    </style>

</body>
</html>
